Skip to content

Conversation

@sebastienhoorens
Copy link
Contributor

Changelog

Fixed

  • [TAN-5756] Inappropriate content flag emails not arriving

@notion-workspace
Copy link

@cl-dev-bot
Copy link
Collaborator

cl-dev-bot commented Oct 31, 2025

Messages
📖 Changelog provided 🎉
📖 Notion issue: TAN-5756
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 14748c9


expect(command).to match(
event_payload: a_hash_including(
flaggable_author_name: 'Biggus Dickus',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😄

Copy link
Contributor

@jamesspeake jamesspeake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. just think the test descriptions need changing - for me they are describing the inverse of what they are doing

Comment on lines 47 to 49
it 'filters out moderators' do
expect(campaign.filter_recipient(User.all, activity:).ids).to match_array([admin.id, moderator.id])
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Struggling with the language here. Do you mean it includes all admins and moderators? It's not filtering out anything?

context 'when the author is a moderator' do
let(:author) { create(:project_moderator, projects: [idea.project]) }

it 'filters out no one if the author is a moderator' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise here - it includes no one

context 'when there is no author' do
let(:author) { nil }

it 'filters out moderators' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

@sebastienhoorens
Copy link
Contributor Author

just think the test descriptions need changing

True, I saw it as things being filtered out, but actually these are more like the things the pass through the filter. I changed the wording, I hope this is less confusing, but I think it's hard to describe the filters in general.

@sebastienhoorens sebastienhoorens merged commit 6ad8be0 into master Nov 5, 2025
9 checks passed
@sebastienhoorens sebastienhoorens deleted the TAN-5756-emails-comment-bug branch November 5, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants